package com.shimao.celnet.payment.quartz;

import com.shimao.celnet.payment.config.ConstantConfig;
import com.shimao.celnet.payment.service.apiservice.AnalysisService;
import org.apache.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

public class GetTLPayRecord implements Job {

    protected Logger logger = Logger.getLogger(this.getClass());
    @Autowired
    private AnalysisService analysisService;
    @Autowired
    private ConstantConfig constantConfig;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        logger.info("定时获取通联账单任务开始");
        analysisService.analysis(constantConfig.getMoreplusCustId());
        logger.info("定时获取通联账单任务结束");
    }
}
